<?php

/**
 * WildlivePHPUnitTestCase
 * 
 * This class offers additional functionality and shortcuts for unit-tests.
 * 
 * @author Maximilian Lenkeit <dev@lenki.com>
 */
class WildlivePHPUnitTestCase extends sfPHPUnitBaseTestCase
{

  /**
   * Load multiple fixtures
   * @param $param1 String fixture file name in /test/fixtures
   */
  protected function loadFixtures ($param1)
  {
    // Add directory path to filenames
    $params = func_get_args();
    foreach ($params as $k => $v)
    {
      $params[$k] = sfConfig::get('sf_test_dir') . '/fixtures/' . $v;
    }
    
    // Load fixtures
    Doctrine_Core::loadData($params, false); 
  }

}